#define _CRT_SECURE_NO_WARNINGS

#include "Sort.h"


void TestInsertSort()
{
	int arr[] = { 2,4,1,7,8,3,9,2 };
	int sz = sizeof(arr) / sizeof(int);
	InsertSort(arr, sz);
	PrintArray(arr, sz);
}

void TestShellSort()
{
	int arr[] = {9,1,2,5,7,4,8,6,3,5,9,1,2,5,7,4,8,6,3,5,9,1,2,5,7,4,8,6,3,5,9,1,2,5,7,4,8,6,3,5};
	int sz = sizeof(arr) / sizeof(int);

	ShellSort(arr, sz);
	PrintArray(arr, sz);
}

void TestSelectSort()
{
	int arr[] = { 9,1,2,5,7,4,6,3 };
	int sz = sizeof(arr) / sizeof(int);

	SelectSort(arr, sz);
	PrintArray(arr, sz);
}

int main()
{
	/*TestInsertSort();*/
	/*TestShellSort();*/
	TestSelectSort();

	return 0;
}